WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL (Jason Arnold's Library) by Kouichi Matsuda & Rodger Lea
Author:Kouichi Matsuda & Rodger Lea
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2013-07-26T16:00:00+00:00
Line 132 calculates the matrix for the viewing volume (projMatrix) and passes it to u_ProjMatrix at line 135. Line 140 displays the current near and far value on the web page. Finally, at line 142, the triangles are drawn.
Changing Near or Far
When you run this program and increase the near value (right-arrow key), the display will change, as shown in Figure 7.14.
Figure 7.14 Increase the near value using the right arrow key
By default, near is 0.0, so all three triangles are displayed. Next, when you increase near using the right arrow key, the blue triangle (the front triangle) disappears because the viewing volume moves past it, as shown in Figure 7.15. This result is shown as the middle figure in Figure 7.14.
Figure 7.15 The blue triangle went outside the viewing volume
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(21660)
Hello! Python by Anthony Briggs(20890)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(19357)
Dependency Injection in .NET by Mark Seemann(18941)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(18567)
Kotlin in Action by Dmitry Jemerov(18354)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(18164)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(17026)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16952)
Grails in Action by Glen Smith Peter Ledbrook(16143)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13828)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11830)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10650)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10591)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9754)
Hit Refresh by Satya Nadella(9101)
The Kubernetes Operator Framework Book by Michael Dame(8534)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8358)
Robo-Advisor with Python by Aki Ranin(8303)